﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace rInvoice
{
    public partial class BalanceAccount : UserControl
    {
        ServerObject mServerObject = null;
        string messageText = string.Empty;

        public BalanceAccount()
        {
            InitializeComponent();
            mServerObject = new ServerObject();
        }      

        private void BalanceAccount_Load(object sender, EventArgs e)
        {
            FillGridView();
        }

        private void FillGridView()
        {
            //todo: create select
            DataTable sourceTable = mServerObject.SelectBankList(false);
            dataGridView1.DataSource = sourceTable;
        }
        
        private void selectButton_Click(object sender, EventArgs e)
        {
            FillGridView();
        }
    }
}
